<script setup lang="ts">
import { ref } from 'vue';
import Button from './components/Button.vue';
import {type Data} from './types/data'
// 非空处理
const iptRef = ref<null | HTMLInputElement>(null)
// type Data = {
//   id: number
//   name: string
// }
const getMsgFn = (msg: Data[]) => {
  console.log(msg);
  
}
</script>

<template>
  <input type="text" ref="iptRef">
  <Button color="red" size="mini" @get-list="getMsgFn"></Button>
</template>

<style scoped>
</style>
